package com.ruoyi.system.controller;


import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/mini")
@Api(tags = "小程序接口")
public class MiniController {


    @Autowired
    UserService userService;

    @ApiOperation("测试接口")
    @GetMapping("/test")
    public AjaxResult test(){
        return AjaxResult.success(userService.getList());
    }
}
